﻿using System;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(DialogController))]
[CanEditMultipleObjects]
public class DialogControllerInspector : BaseInspector
{
    public SerializedProperty baseDialogs;
    private void OnEnable()
    {
        baseDialogs = serializedObject.FindProperty("baseDialogs");
    }

    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        serializedObject.Update();
        ShowArrayProperty(baseDialogs, typeof(DialogType), "Dialogs");
        serializedObject.ApplyModifiedProperties();
    }

    public void TEXT1()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }
    public void TEXT2()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }
    public void TEXT3()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT4()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT5()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT6()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT8()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT9()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT10()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT11()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT12()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT13()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT14()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT15()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT16()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }

    public void TEXT17()
    {
        int textNum = 1;
        if (textNum == 1)
        {
            textNum = 2;
        }
    }
}